<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <%@include file="../common.jsp"%>
    <title>系统用户管理</title>
	<meta http-equiv="cache-control" content="no-cache">
	<link rel="stylesheet" type="text/css" href="resources/css/common.css">
	<script type="text/javascript" src="resources/js/sysuser.js"></script>  
  </head>
  <body>
   	<div class="content">
   		<h4>系统用户</h4>
   		<hr/>
   		<!-- 查询面板 -->
   		<div class="panel panel-default">
		    <div class="panel-heading">
		      <h4 class="panel-title">
		        <a data-toggle="collapse" data-parent="#accordion" href="#collapseSearch">
		           	<i class="icon icon-search"></i> 查询过滤
		        </a>
		      </h4>
		    </div>
		    <div id="collapseSearch" class="panel-collapse collapse out">
		      <div class="panel-body">
				  <form id="form_search" class="form-horizontal">
			        <div class="form-group">
			          	<label class="col-md-1 control-label">用户名</label>
			          	<div class="col-md-4">
			             	<input type="text" name="name" id="search_name" class="form-control" placeholder="模糊查询...">
			          	</div>
			          	<label class="col-md-1 control-label">用户添加人</label>
			          	<div class="col-md-4">
			             	<input type="text" name="duty" id="search_Addman" class="form-control" placeholder="模糊查询...">
			          	</div>
			        </div>
			        <div class="form-group">
			          <div class="col-md-offset-1 col-md-11">
			             <button id="btn_search" class="btn btn-default"><i class="icon icon-search"></i> 查询</button>
			             <button id="btn_reset" class="btn btn-default"><i class="icon icon-undo"></i> 重置</button>
			          </div>
			        </div>
			      </form>
		      </div>
		    </div>
		</div>
	    <!-- 工具栏 -->
   		<div class="tools">
 	    	<button id="btn_add" type="button" class="btn btn-success" data-toggle="modal" data-target="#modal_add"><i class="icon icon-plus"></i> 增加</button>
	    	<button id="btn_del" type="button" class="btn btn-danger"><i class="icon icon-minus"></i> 删除</button>
	    	<button id="btn_auth" type="button" class="btn btn-primary"><i class="icon icon-th"></i> 分配权限</button>
	    </div>
	    
	    <!-- 列表 -->	    
	    <table id="tab_list" class="table table-hover table-striped mytable">
			<thead>
				<tr>
					<th style="width: 35px;"><input id="pkall" type='checkbox' class='checkbox'></th>
					<th style="width: 50px;">序号</th>
					<th>系统用户名　  </th>
					<th>系统用户级别</th>
					<th>添加时间</th>
					<th>添加人</th>
					<th>最后登录时间</th>
				</tr>
			</thead>
			<tbody>
				
			</tbody>
	  </table>
	  <!-- 分页信息条 -->
	  <div id="pagebar" class="pagebar">
		  	<ul class="pager">
			</ul>
			<p id="page_info" class="page_info">显示第<span>0</span>到第<span>0</span>条记录,共<span>0</span>条</p>
	  	</div>
	  </div>
      <!-- 增加  -->
	  <div class="modal fade bs-example-modal-lg" id="modal_add" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
		  <div class="modal-dialog modal-lg">
		    <div class="modal-content">
		      <div class="modal-header">
		        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
		        <h4 class="modal-title" id="myModalLabel">新增系统用户帐号</h4>
		      </div>
		      <div class="modal-body">
		         <form id="form_add" class="form-horizontal" role="form" action="duty/add" method="post">
					 <div class="form-group">
					    <label class="col-sm-2 control-label required">系统用户名</label>
					    <div class="col-sm-4">
					         <input id="sys_Name" type="text" name="sysName" class="form-control"  placeholder="系统用户名不能为中文" data-toggle="tooltip" data-placement="top" title="请输入系统用户名">
					    </div>
					    <label class="col-sm-2 control-label required">用户类型</label>
					    <div class="col-sm-4">
						    <select name="sysLevel" id="sysLevel" class="form-control">
							    <option value="1">普通管理员</option>
							    <option value="2">运维人员</option>
						    </select>					   
					    </div>
					 </div>
					 <div class="form-group">
					    <div class="col-sm-10 col-sm-offset-2">【普通管理员】默认具有所有权限,【运维人员】默认只具有系统运维模块的管理权限</div>
					 </div>
					 <div class="form-group">
					    <div class="col-sm-10 col-sm-offset-2">密码为系统管理员默认密码,可以在<a href="param.htm">系统参数管理</a>中修改</div>
					 </div>
				</form>
		      </div>
		      <div class="modal-footer">
		          <button id="btn_confirm_add" type="button" class="btn btn-primary">确定</button>
		          <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
		      </div>
		    </div>
	   </div>
	  </div>
      <!-- 权限管理  -->
	  <div class="modal fade bs-example-modal-lg" id="modal_permission" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
		  <div class="modal-dialog modal-lg">
		    <div class="modal-content">
		      <div class="modal-header">
		        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
		        <h4 class="modal-title" id="myModalLabel">权限分配,请勾选权限以分配给用户</h4>
		      </div>
		      <div class="modal-body">
		         <form id="form_auth" class="form-horizontal" role="form" method="post">
					 <div class="form-group">
					     <div class="col-sm-2 col-sm-offset-1 checkbox">
						    <label>
						      <input name="appuser" type="checkbox">app用户管理
						    </label>
						  </div>
					     <div class="col-sm-2 checkbox">
						    <label>
						      <input name="test" type="checkbox">测试题管理
						    </label>
						 </div>
					     <div class="col-sm-2 checkbox">
						    <label>
						      <input name="report" type="checkbox">举报管理
						    </label>
						 </div>
					     <div class="col-sm-2 checkbox">
						    <label>
						      <input name="feedback" type="checkbox">反馈建议管理
						    </label>
						 </div>
					 </div>
					 <div class="form-group">
					     <div class="col-sm-2 col-sm-offset-1 checkbox">
						    <label>
						      <input name="push" type="checkbox">消息推送管理
						    </label>
						 </div>
					     <div class="col-sm-2 checkbox">
						    <label>
						      <input name="params" type="checkbox">系统参数管理
						    </label>
						 </div>
					     <div class="col-sm-2 checkbox">
						    <label>
						      <input name="app" type="checkbox">app更新管理
						    </label>
			    		 </div>
					     <div class="col-sm-2 checkbox">
						    <label>
						      <input name="about" type="checkbox">关于我们管理
						    </label>
						 </div>
					     <div class="col-sm-2 checkbox">
						    <label>
						      <input id="sel_all" type="checkbox"><span style="color:blue;">全选</span>
						    </label>
						 </div>
					 </div>
				</form>
		      </div>
		      <div class="modal-footer">
		          <button id="btn_confirm_auth" type="button" class="btn btn-primary">确定</button>
		          <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
		      </div>
		    </div>
	   	  </div>
	   </div>
  </body>
</html>